package com.ruoyi.web.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LuckConfig {

    /**
     * 抽奖彩民打乱次数
     */
    @Value("${lucky.shuffle.count}")
    private int luckyShuffleCount;

    /**
     * 幸运彩民最大抽取次数
     */
    @Value("${lucky.draw.maxCount}")
    private int luckyDrawMaxCount;


    /**
     * 同期同一彩民是否可多中
     */
    @Value("${lucky.draw.repeat}")
    private boolean luckyDrawRepeat;

    /**
     * 抽奖页面地调用地址
     */
    @Value("${lucky.html.url}")
    private String luckyHtmlUrl;

    public int getLuckyShuffleCount() {
        return luckyShuffleCount;
    }

    public void setLuckyShuffleCount(int luckyShuffleCount) {
        this.luckyShuffleCount = luckyShuffleCount;
    }

    public int getLuckyDrawMaxCount() {
        return luckyDrawMaxCount;
    }

    public void setLuckyDrawMaxCount(int luckyDrawMaxCount) {
        this.luckyDrawMaxCount = luckyDrawMaxCount;
    }

    public String getLuckyHtmlUrl() {
        return luckyHtmlUrl;
    }

    public void setLuckyHtmlUrl(String luckyHtmlUrl) {
        this.luckyHtmlUrl = luckyHtmlUrl;
    }

    public boolean getLuckyDrawRepeat() {
        return luckyDrawRepeat;
    }

    public void setLuckyDrawRepeat(boolean luckyDrawRepeat) {
        this.luckyDrawRepeat = luckyDrawRepeat;
    }
}
